package com.msw.design.proxy.statics;

/**
 * Created by minshiwu on 2017/6/4.
 */
public class Client {

    /**
     * 静态代理的Client
     *
     * @param args
     */
    public static void main(String[] args) {
        RealSubject realSubject = new RealSubject();
        // 创建真实对象的代理对象
        ProxySubject subject = new ProxySubject(realSubject);
        System.err.println(subject.getClass().getTypeName());
        System.err.println(subject.request("world"));

    }
}
